services.znapzend.zetup.<name>.presnap
Command to run before snapshots are taken on the source dataset,
e.g. for database locking/flushing. See also
postsnap.
- Type
null or string- Default
null- Example
''${pkgs.mariadb}/bin/mysql -e "set autocommit=0;flush tables with read lock;\\! ${pkgs.coreutils}/bin/sleep 600" & ${pkgs.coreutils}/bin/echo $! > /tmp/mariadblock.pid ; sleep 10''- Declared
- <nixpkgs/nixos/modules/services/backup/znapzend.nix>